# Sources
file(GLOB SRCS_G "src/*.cpp")
POCO_SOURCES_AUTO(SRCS ${SRCS_G})

# Headers
file(GLOB_RECURSE HDRS_G "include/*.h")
POCO_HEADERS_AUTO(SRCS ${HDRS_G})

POCO_SOURCES_AUTO_PLAT(SRCS WIN32
	src/WinRegistryConfiguration.cpp
	src/WinRegistryKey.cpp
	src/WinService.cpp
)

add_library(Util ${SRCS})
set_target_properties(Util PROPERTIES CXX_STANDARD 17)
add_library(Poco::Util ALIAS Util)

target_link_libraries(Util PUBLIC Poco::Foundation)
target_compile_definitions(Util PUBLIC POCO_UTIL_NO_XMLCONFIGURATION)
target_compile_definitions(Util PUBLIC POCO_UTIL_NO_JSONCONFIGURATION)

target_include_directories(Util
	PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
	PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
)

